//package com.beta.backend.gateway.config;
//
//import com.bes.enterprise.gjc.spi.BasicDataSource;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
//@Configuration
//public class DataSourceConfig {
//    @Bean
//    @ConditionalOnMissingBean(DataSource.class)
//    @ConfigurationProperties(prefix = "server.bes.jdbc")
//    public DataSource dataSource() {
//        BasicDataSource basicDataSource = new BasicDataSource();
//        basicDataSource.setInitialSize(5);
//        basicDataSource.setMaxIdle(5);
//        return basicDataSource;
//    }
//}
